{% extends 'base.html' %}
{% block menutab %}
<div class="menutab"><a href="/">广播大厅</a></div>
<div class="menutab"><a href="/member/">我的主页</a></div>
<div class="menutab currenttab"><a href="/dailyreport/">每日总结</a></div>
<div class="menutab"><a href="/favorite/">收藏夹</a></div>
{% endblock %}
{% block main %}
<div id="sheet">
    <div id="row0" class="row head">
        <div id="row0col0" class="col">节次/日期</div>
        <div id="row0col1" class="col">星期一</div>
        <div id="row0col2" class="col">星期二</div>
        <div id="row0col3" class="col">星期三</div>
        <div id="row0col4" class="col">星期四</div>
        <div id="row0col5" class="col">星期五</div>
        <div id="row0col6" class="col">星期六</div>
        <div id="row0col7" class="col">星期日</div>
    </div>
    {% for r in range %}
        <div id="row{{forloop.counter}}" class="row">
            <div id="row{{forloop.counter}}col0" class="col">第{{forloop.counter}}大节</div>
            {% for c in range %}
                <div id="row{{forloop.parentloop.counter}}col{{forloop.counter}}" class="col">
                   {% for course in schedule.course_set.all %}
                        {% if course.dayofweek == forloop.parentloop.counter|stringformat:"s" and course.sectionofday == forloop.parentloop.parentloop.counter|stringformat:"s" %}
                            <p><a href="{{course.id}}">{{course.name}}</a></p>
                            <p>{{course.teacher}}</p>
                            <p>{{course.classroom}}</p>
                        {% endif %}
                   {% endfor %}
                </div>
            {% endfor %}
        </div>
        
    {% endfor %}
</div>
{% endblock %}